package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scan(&n)

	var left, right int
	left, right = -90, 90
	res := ""
	for i := 0; i < 6; i ++ {
		arr := []int{left, right}
		mid := (arr[0] + arr[1]) / 2
		// fmt.Println(mid)
		if n > mid {
			left = mid
			res += "1"
		}else {
			right = mid
			res += "0"
		}
	}
	fmt.Println(res)
}

